-
Notifications
You must be signed in to change notification settings - Fork 2
fix: Solve the code specification problem detected by golangci-lint. #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| common.BytesToAddress([]byte{3}): &ripemd160hash{}, | ||
| common.BytesToAddress([]byte{1}): &ecrecover{}, | ||
| common.BytesToAddress([]byte{2}): &sha256hash{}, | ||
| //common.BytesToAddress([]byte{3}): &ripemd160hash{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why comment this code
| common.BytesToAddress([]byte{3}): &ripemd160hash{}, | ||
| common.BytesToAddress([]byte{1}): &ecrecover{}, | ||
| common.BytesToAddress([]byte{2}): &sha256hash{}, | ||
| //common.BytesToAddress([]byte{3}): &ripemd160hash{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above all
| common.BytesToAddress([]byte{3}): &ripemd160hash{}, | ||
| common.BytesToAddress([]byte{1}): &ecrecover{}, | ||
| common.BytesToAddress([]byte{2}): &sha256hash{}, | ||
| //common.BytesToAddress([]byte{3}): &ripemd160hash{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above all
| common.BytesToAddress([]byte{3}): &ripemd160hash{}, | ||
| common.BytesToAddress([]byte{1}): &ecrecover{}, | ||
| common.BytesToAddress([]byte{2}): &sha256hash{}, | ||
| //common.BytesToAddress([]byte{3}): &ripemd160hash{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above all
| ripemd.Write(input) | ||
| return common.LeftPadBytes(ripemd.Sum(nil), 32), nil | ||
| } | ||
| //func (c *ripemd160hash) RequiredGas(input []byte) uint64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above all
| } | ||
| err = l.encoder.Encode(endLog{common.Bytes2Hex(output), math.HexOrDecimal64(gasUsed), t, ""}) | ||
| if err != nil { | ||
| return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace by :
el := endLog{common.Bytes2Hex(output), math.HexOrDecimal64(gasUsed), t, ""}
if err != nil {
el.Err = err.Error()
}
err = l.encoder.Encode(el)
if err != nil {
return
}
No description provided.